package cn.xd.itstack.springframework.beans.factory.config;

import cn.xd.itstack.springframework.beans.BeansException;
import cn.xd.itstack.springframework.beans.factory.BeanFactory;

/**
 * @Classname AutoWireCapableBeanfactory
 * @Description TODO
 * @Date 2022/5/17 下午6:25
 * @Created by lvxiaodong
 */
public interface AutoWireCapableBeanFactory extends BeanFactory {
    /**
     * 执行BeanPostProcessor实现类的postProcessorsBeforeInitialization方法
     * @param existingBean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) throws BeansException;

    /**
     * 执行BeanPostProcessor实现类的postProcessorsAfterInitialization方法
     * @param existingBean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException;

}
